package com.shop.mapper;

import com.shop.entity.BrandCountChart;
import com.shop.entity.BrandPriceChart;
import com.shop.entity.Phone;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.entity.PhoneAttr;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-03-04
 */
public interface PhoneMapper extends BaseMapper<Phone> {

    List<Integer> getPhoneMemory();

    List<Integer> getPhoneDisk();

    List<Phone> queryByAttr(@Param("attr") PhoneAttr phone);

    Integer countByAttr(@Param("attr") PhoneAttr phone);

    List<BrandCountChart> getBrandCount();

    List<BrandPriceChart> getBrandPriceCount();
}
